<?php

require_once('..\..\app\models\Member.php');
require_once('..\..\app\models\conn.php');

	//get the q parameter from URL
	$id=$_GET["id"];
	$name=$_GET["name"];
	$profession=$_GET["profession"];
	$department=$_GET["department"];
	$tel=$_GET["tel"];
	$tax=$_GET["tax"];
	$email=$_GET["email"];
	
	// $id=2;
	// $name=1;
	// $profession=1;
	// $department=1;
	// $tel=1;
	// $tax=1;
	// $email=1;	
	$item = array("id"=>$id,"name"=>$name,"profession"=>$profession,"department"=>$department,"tel"=>$tel,"tax"=>$tax,"email"=>$email);
	$m1 = new Member();
	$m1->update($item);
?>